package com.stone.im.service.impl;

import com.stone.im.common.utils.PageUtils;
import com.stone.im.common.utils.Query;
import com.stone.im.dao.MessageSendDao;
import com.stone.im.entity.MessageSendEntity;
import com.stone.im.service.MessageSendService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("messageSendService")
public class MessageSendServiceImpl extends ServiceImpl<MessageSendDao, MessageSendEntity> implements MessageSendService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MessageSendEntity> page = this.page(
                new Query<MessageSendEntity>().getPage(params),
                new QueryWrapper<MessageSendEntity>()
        );

        return new PageUtils(page);
    }

}